import {Header} from "antd/es/layout/layout";
import {Parent as BadParent, Son} from "./bad";
import Good1 from "./good1";
import Good2 from "./good2";
import Good3 from "./good3";
import './index.less'

const FatherWatchSonWatch = () => {
    return (<div>
        <Header>父组件更新导致子组件更新</Header>
        <BadParent/>
        <Good1 children={<Son/>}/>
        <Good2/>
        <Good3/>
    </div>)

}
export default FatherWatchSonWatch

